/**
 * 热门推荐 部分请求
*/

//@ts-ignore,引入请求函数
import { http } from "@/utils/http.ts";
//@ts-ignore,引入类型约束
import type { PageParams } from "@/types/global.d.ts";
//@ts-ignore
import type { HotResult } from "@/types/hot.d.ts";


type reqHotParams = PageParams & {subType?:string}
//获取热门推荐部分的数据(特惠，爆款，一站买全，新鲜好物)
export const reqHotRecommend = (reqUrl:string, data?:reqHotParams) => {
    return http<HotResult>({
        method:"GET",
        url:reqUrl,
        data
    })
}